home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_03
/
1003020a
< prev
next >
Wrap
Text File
|
1991-12-17
|
380b
|
24 lines
/* convert infix notation to postfix notation */
#include <stdio.h>
main()
{
char infix_str[200];
char postfix_str[200];
void intopost(const char *infix, char *postfix);
while (1) {
printf("Enter infix: ");
if (gets(infix_str) == NULL)
break;
intopost(infix_str, postfix_str);
printf(" postfix: %s\n", postfix_str);
}
return 0;
}